Component({
  properties: {
    phoneNumber: String,
    canCall: {
      type: Boolean,
      value: true
    }
  },
  data: {},
  methods: {
    makecall () {
      if (this.properties.canCall) {
        wx.makePhoneCall({
          phoneNumber: this.properties.phoneNumber
        })
      }
    }
  }
})
